package com.wom.blocks;

import java.awt.Color;
import java.awt.Graphics;
import com.wom.blockfeatures.PhysicsBlock;
import com.wom.worldmaker.GameProperties;
import com.wom.worldmaker.GameWorld;


public class AirBlock extends AbstractBlock{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	PhysicsBlock physics;
	
	
	public Color color=new Color(100,100,255);

	public AirBlock(int xPos, int yPos) {
		super(xPos, yPos);
		
		int[] tileId={3,0};
		setId(tileId);
		setName("Air");
		
		
		
		setColor(color);
		
		
	}

	@Override
	public void renderBlock(Graphics g) {
		
		g.setColor(getColor());
		g.fillRect(getxPos()*GameProperties.blockSize-(int)GameWorld.player.cam.x, 
				getyPos()*GameProperties.blockSize-(int)GameWorld.player.cam.y, 
				GameProperties.blockSize, GameProperties.blockSize);

	}

	@Override
	public void updateBlock() {
		setBounds(getxPos()* GameProperties.blockSize, getyPos()*GameProperties.blockSize,GameProperties.blockSize, GameProperties.blockSize);
		
	}

	
	

}
